<?php

use yii\db\Schema;
use yii\db\Migration;

class m160120_092250_add_solution_weekday_slot_field extends Migration
{
    public function up()
    {
        $this->addColumn('{{%solution}}', 'weekday_slot', "varchar(13) NOT NULL DEFAULT '0,1,2,3,4,5,6' COMMENT '时间定向的周期数' after end_date");
    }

    public function down()
    {
        return $this->dropColumn('{{%solution}}', 'weekday_slot');
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
